package cn.mvcjava.model;

import java.util.Date;

public class User {
	
	private  int  id;
	private String username;
	private String password;
	private String adress;
	private String phone ;
	private Date regDate;
	
	 
	public Date getRegDate() {
		return regDate;
	}
	public void setRegDate(Date regDate) {
		this.regDate = regDate;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public String getAdress() {
		return adress;
	}
	public void setAdress(String adress) {
		this.adress = adress;
	}
	 
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
 
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id; 
	}
 
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	 
 
	public User(int id, String username, String password, String adress, String phone, Date regDate) {
		super();
		this.id = id;
		this.username = username;
		this.password = password;
		this.adress = adress;
		this.phone = phone;
		this.regDate = regDate;
	}
	@Override
	public String toString() {
		return "User [id=" + id + ", username=" + username + ", password=" + password + ", adress=" + adress
				+ ", phone=" + phone + ", regDate=" + regDate + "]";
	}
	public User() {
		super();
		// TODO Auto-generated constructor stub
	}
	
	
	

}
